initial design of domain
All checks were successful
Log every push / log-push (push) Successful in 2s

This commit is contained in:
Boban
2026-06-07 22:09:45 +02:00
parent 2af87e8268
commit 4a7ddacae4
393 changed files with 16395 additions and 0 deletions

View File

@@ -0,0 +1,949 @@
Ð
B/Users/bobanlapcevic/Desktop/theInterfacePro/Code/TesterUseCase.cs
namespace 
Code

; 
public 
class 
TesterUseCase

{ 
public

void 
RunUnitTests 
( 
) 
{ 
} 
public



void

 
RunFitnesseTests

 
(

 !
)

! "
{   
}

 
}  
H/Users/bobanlapcevic/Desktop/theInterfacePro/Code/StartProjectUseCase.cs
namespace 
Code

; 
public 
class 
StartProjectUseCase

{ 
Project 
projectToStart 
; 
} 
K/Users/bobanlapcevic/Desktop/theInterfacePro/Code/SetupNewProjectUseCase.cs
namespace 
Code

; 
public 
class "
SetupNewProjectUseCase
#
{ 
private 
Project 
projectToSet 
; !
public
"
SetupNewProjectUseCase !
(! "
Project" )
project* 1
)1 2
{ 
SaveBasicProjectData   
(   
)   
;   
SetCodeCheckers

 
(

 
)

 
;

 $
CreateExampleUserStories   
(   !
)  ! "
;  " #
}   
private 
void 
SaveBasicProjectData %
(% &
)& '
{ 
} 
public

bool 
SetCodeCheckers 
( 
) !
{ 
return 
true 
; 
} 
private 
void $
CreateExampleUserStories )
() *
)* +
{ 
} 
} Ç
R/Users/bobanlapcevic/Desktop/theInterfacePro/Code/PrepareHomePageForUserUseCase.cs
namespace 
Code

; 
public 
class )
PrepareHomePageForUserUseCase
*
{ 
private 
readonly 
Project 
_project %
;% &
public
)
PrepareHomePageForUserUseCase (
(( )
Project) 0
project1 8
)8 9
{ 
_project   
=   
project   
;   
}

 
}  æ
K/Users/bobanlapcevic/Desktop/theInterfacePro/Code/MaintainProjectUseCase.cs
namespace 
Code

; 
public 
class "
MaintainProjectUseCase
#
{ 
} ú
U/Users/bobanlapcevic/Desktop/theInterfacePro/Code/DevelopProjectIterativelyUseCase.cs
namespace 
Code

; 
public 
class ,
DevelopProjectIterativelyUseCase
-
{ 
} ·
C/Users/bobanlapcevic/Desktop/theInterfacePro/Code/Core/UserStory.cs
namespace 
Code

; 
public 
class 
UserStory

{ 
public

string 
Title 
{ 
get 
; 
set !
;! "
}" #
public

string 
Requirement 
{ 
get "
;" #
set$ '
;' (
}( )
public

int 
StoryPoints 
{ 
get 
; 
set! $
;$ %
}% &
public

string 
FitnesseTestTitle #
{$ %
get% (
;( )
set* -
;- .
}. /
public  

List   
<   
string   
>   
EventsInOrder   %
{  & '
get  ( +
;  + ,
set  - 0
;  0 1
}  2 3
public  

bool   
IsComplete   
{   
get   
;   
set  ! $
;  $ %
}  % &
}

¿
@/Users/bobanlapcevic/Desktop/theInterfacePro/Code/Core/Sprint.cs
namespace 
Code

. 
Core 
; 
public 
class 
Sprint

{ 
public

int 
SprintNumber 
{ 
get !
;! "
set# &
;& '
}( )
public

DateTime 
StartDate 
{ 
get #
;# $
set% (
;( )
}* +
public

DateTime 
EndDate 
{ 
get !
;! "
set# &
;& '
}( )
public

bool 
IsActive 
{ 
get 
; 
set #
;# $
}% &
=' (
false) .
;. /
public  

List   
<   
UserStory   
>   
UserStories   &
{  ' (
get  ) ,
;  , -
set  . 1
;  1 2
}  3 4
=  5 6
new  7 :
List  ; ?
<  ? @
UserStory  @ I
>  I J
(  J K
)  K L
;  L M
public  

void   
MarkStoryDone   
(   
UserStory   '
userStory  ( 1
)  1 2
{   
var

 
story

 
=

 
UserStories

 
.

 
First

 %
(

% &
x

& '
=>

( *
x

+ ,
.

, -
Title

- 2
==

3 5
userStory

6 ?
.

? @
Title

@ E
)

E F
;

F G
story

.

IsComplete 
= 
true 
; !
} 
} óF
A/Users/bobanlapcevic/Desktop/theInterfacePro/Code/Core/Project.cs
namespace 
Code

. 
Core 
; 
public 
class 
Project

{ 
public

List 
< 
string 
> 
EventsInOrder %
{& '
get( +
;+ ,
set- 0
;0 1
}2 3
=4 5
new6 9
(9 :
): ;
;; <
public

string 
Name 
{ 
get 
; 
private %
set& )
;) *
}+ ,
public

string 
Description 
{ 
get #
;# $
private% ,
set- 0
;0 1
}2 3
public

string 
SourceCodeRootPath $
{% &
get' *
;* +
private, 3
set4 7
;7 8
}9 :
public  

DateTime   
StartingDate   
{  ! "
get  " %
;  % &
private  ' .
set  / 2
;  2 3
}  3 4
public



List

 
<

 
UserStory

 
>

 
Backlog

 "
{

# $
get

% (
;

( )
private

* 1
set

2 5
;

5 6
}

7 8
=

9 :
new

; >
(

> ?
)

? @
;

@ A
public  

List   
<   
Sprint   
>   
Sprints   
{   !
get  " %
;  % &
private  ' .
set  / 2
;  2 3
}  4 5
=  6 7
new  8 ;
(  ; <
)  < =
;  = >
public  

Project   
(   
string   
name   
,   
string   &
description  ' 2
,  2 3
string  4 :
sourceCodeRootPath  ; M
)  M N
{

 
this 
.

Name

= 
name 
; 
this 
.

Description

= 
description &
;& '
this 
.

SourceCodeRootPath

= !
sourceCodeRootPath" 4
;4 5
this 
.

StartingDate

= 
DateTime $
.$ %
Now% (
;( )
} 
public

void 
DefineBasicData 
( 
) !
{ 
EventsInOrder 
. 
Add 
( 
$str -
+. /
this0 4
.4 5
Name5 9
+: ;
$str< ?
+@ A
thisB F
.F G
DescriptionG R
)R S
;S T
} 
public

void 
AddToBacklog 
( 
UserStory &
userStory' 0
)0 1
{ !
ArgumentNullException 
. 
ThrowIfNull )
() *
userStory* 3
)3 4
;4 5
if

( 
Backlog 
. 
Any 
( 
x 
=> 
x 
. 
Title $
==% '
userStory( 1
.1 2
Title2 7
)7 8
)8 9
{ 
throw 
new %
InvalidOperationException /
(/ 0
$str0 R
)R S
;S T
}   
this"" 
.""

Backlog""

."" 
Add"" 
("" 
userStory"" "
)""" #
;""# $
EventsInOrder## 
.## 
Add## 
(## 
$str## 3
+##4 5
userStory##6 ?
+##@ A
$str##B H
+##I J
this##K O
.##O P
Backlog##P W
.##W X
ToString##X `
(##` a
)##a b
)##b c
;##c d
}$$ 
public&&

void&& 
Start&& 
(&& 
)&& 
{'' 
if((

(((

Sprints(( 
.(( 
Any(( 
((( 
x(( 
=>(( 
x(( 
.(( 
IsActive(( &
==((' )
true((* .
)((. /
)((/ 0
throw)) 
new)) %
InvalidOperationException)) /
())/ 0
$str))0 `
)))` a
;))a b
CreateNewSprint++ 
(++ 
)++ 
;++ 
if,,

(,, 
Sprints,, 
.,, 
Count,, 
==,, 
$num,, 
),, 
throw-- 
new-- %
InvalidOperationException-- /
(--/ 0
$str--0 h
)--h i
;--i j
if//

(//

Backlog// 
.// 
Count// 
==// 
$num// 
)// 
throw00 
new00 %
InvalidOperationException00 /
(00/ 0
$str000 r
)00r s
;00s t
Sprints22 
.22 
First22 
(22 
)22 
.22 
IsActive22 
=22! "
true22# '
;22' (
}33 
public55

void55 
EndSprint55 
(55 
)55 
{66 
if77

(77 
Sprints77 
.77 
Count77 
==77 
$num77 
)77 
throw88 
new88 %
InvalidOperationException88 /
(88/ 0
$str880 I
)88I J
;88J K
var:: 
oldSprint:: 
=:: 
Sprints:: 
.:: 
First:: %
(::% &
x::& '
=>::( *
x::+ ,
.::, -
IsActive::- 5
)::5 6
;::6 7
oldSprint;; 
.;; 
IsActive;; 
=;; 
false;; "
;;;" #
var<< 
newSprintNumber<< 
=<< 
Sprints<< %
.<<% &
Count<<& +
(<<+ ,
)<<, -
;<<- .
CreateNewSprint== 
(== 
newSprintNumber== '
)==' (
;==( )
}>> 
private@@ 
void@@ 
CreateNewSprint@@ 
(@@ !
int@@! $
sprintNumber@@% 1
=@@2 3
$num@@4 5
)@@5 6
{AA 
SprintsBB 
.BB 
AddBB 
(BB 
newBB 
SprintBB 
(BB 
)BB 
{CC 
SprintNumberDD 
=DD 
sprintNumberDD '
,DD' (
StartDateEE 
=EE 
DateTimeEE 
.EE !
NowEE! $
,EE$ %
EndDateFF 
=FF 
newFF 
DateTimeFF "
(FF" #
)FF# $
,FF$ %
IsActiveGG 
=GG 
trueGG 
}HH 
)HH

;HH

}II 
publicKK

voidKK &
AssignStoryToCurrentSprintKK *
(KK* +
UserStoryKK+ 4
storyKK5 :
)KK: ;
{LL 
ifMM

(MM 
SprintsMM 
.MM 
CountMM 
==MM 
$numMM 
||MM !
!MM" #
SprintsMM# *
.MM* +
AnyMM+ .
(MM. /
xMM/ 0
=>MM1 3
xMM4 5
.MM5 6
IsActiveMM6 >
)MM> ?
)MM? @
throwNN 
newNN %
InvalidOperationExceptionNN /
(NN/ 0
$str NN0 †
)
NN
;
NN ˆ
ifPP

(PP 
BacklogPP 
.PP 
AllPP 
(PP 
xPP 
=>PP 
xPP 
.PP 
TitlePP $
!=PP% '
storyPP( -
.PP- .
TitlePP. 3
)PP3 4
)PP4 5
throwQQ 
newQQ %