//public CodeCampService(StandardKernel kernel) //{ // _personRepository = kernel.Get<PersonRepository>(); // _sessionRepository = kernel.Get<SessionRepository>(); // _metadataRepository = kernel.Get<MetadataRepository>(); // _taskRepository = kernel.Get<TaskRepository>(); // _tagRepository = kernel.Get<TagRepository>(); //} public CodeCampService(PersonRepository personRepo, SessionRepository sessionRepo, MetadataRepository metaRepo, TaskRepository taskRepo, TagRepository tagRepo) { _personRepository = personRepo; _sessionRepository = sessionRepo; _metadataRepository = metaRepo; _taskRepository = taskRepo; _tagRepository = tagRepo; }
public CodeCampService() { _personRepository = new PersonRepository(); _sessionRepository = new SessionRepository(); _metadataRepository = new MetadataRepository(); _taskRepository = new TaskRepository(); _tagRepository = new TagRepository(); }
public void GetValueForKey_returns_string_when_valid_id() { // Arrange var cut = new MetadataRepository(dbContext); // Act string actual = cut.GetValueForKey(Key); // Assert actual.ShouldAllBeEquivalentTo(Value); }