Example #1
0
 public CreateProjectSpecs()
 {
     _fixture = new Fixture();
     _logger  = Substitute.For <ILogger <Rest.Write.Projects.Controller> >();
     _createProjectHandler = Substitute.For <ICommandHandler <Command> >();
     _controller           = new Rest.Write.Projects.Controller(_logger, _createProjectHandler, null);
 }
Example #2
0
 public DeleteProjectSpecs()
 {
     _fixture = new Fixture();
     _logger  = Substitute.For <ILogger <Rest.Write.Projects.Controller> >();
     _deleteProjectHandler = Substitute.For <ICommandHandler <Command> >();
     _controller           = new Rest.Write.Projects.Controller(_logger, null, _deleteProjectHandler);
     _projectId            = _fixture.Create <Guid>();
 }