public ContactController(IContactManagerService service) { this._service = service; }
public ContactManagerServiceTest() { _mockRepository = new Mock<IContactManagerRepository>(); _modelState = new ModelStateDictionary(); _service = new ContactManagerService(new ModelStateWrapper(_modelState), _mockRepository.Object); }
public ContactController() { this._service = new ContactManagerService(new ModelStateWrapper(this.ModelState)); }
public GroupController(IContactManagerService service) { _service = service; }
public ContactController(IContactManagerService service) { _service = service; }
public void Initialize() { _mockRepository = new Mock <IContactManagerRepository>(); _modelState = new ModelStateDictionary(); _service = new ContactManagerService(new ModelStateWrapper(_modelState), _mockRepository.Object); }
public ContactManagerRepository(ContactManagerContext contactManagerContext, IContactManagerService contactManagerService) { _contactManagerContext = contactManagerContext; _contactManagerService = contactManagerService; }