public BaseApiController( IManagerStore managerStore, ICrudManager <TModel> manager) : base(managerStore) { _manager = manager; }
public void CanOverrideNonExisting() { IManagerStore dictionary = GetManagerStore(); dictionary.AddOrOverride(GetManager()); Assert.AreEqual(1, dictionary.Count); }
public void AddManagerByType() { IManagerStore managerStore = GetManagerStore(); managerStore.Add(GetManager()); Assert.IsTrue(managerStore.Contains <WebServiceDriverManager>()); }
public void AddIncrementCount() { IManagerStore dictionary = GetManagerStore(); dictionary.Add(GetManager()); Assert.AreEqual(1, dictionary.Count); }
public ProjectManager( IApplicationUnitOfWork unitOfWork, IObjectMapper objectMapper, IConfigurationProvider configurationProvider, ILogManager logger, IManagerStore store) : base(unitOfWork, unitOfWork.Projects, objectMapper, configurationProvider, logger) { _store = store; }
public void ThrowDriverAlreadyExist() { IManagerStore dictionary = GetManagerStore(); dictionary.Add(GetManager()); dictionary.Add(GetManager()); Assert.Fail("Previous line should have failed the test."); }
public void AddNamedAndUnnamed() { IManagerStore dictionary = GetManagerStore(); dictionary.Add(string.Empty, GetManager()); dictionary.Add(GetManager()); Assert.AreEqual(2, dictionary.Count); }
public void ClearRemovesAll() { IManagerStore dictionary = GetManagerStore(); dictionary.Add(GetManager()); dictionary.Add(string.Empty, GetManager()); dictionary.Clear(); Assert.AreEqual(0, dictionary.Count); }
public void RemoveByName() { IManagerStore dictionary = GetManagerStore(); DriverManager managerToKeep = GetManager(); dictionary.Add(managerToKeep); dictionary.Add(string.Empty, GetManager()); dictionary.Remove(string.Empty); Assert.AreEqual(((WebServiceDriverManager)managerToKeep).Get(), dictionary.GetDriver <EventFiringWebServiceDriver, WebServiceDriverManager>()); }
public void RemoveByType() { IManagerStore managerStore = GetManagerStore(); DriverManager managerToKeep = GetManager(); managerStore.Add(GetManager()); managerStore.Add(string.Empty, managerToKeep); managerStore.Remove <WebServiceDriverManager>(); Assert.AreEqual(managerToKeep, managerStore.GetManager(string.Empty)); }
public void ManagersMap() { IManagerStore managerStore = GetManagerStore(); DriverManager managerToKeep = GetManager(); DriverManager managerToKeep2 = GetManager(); managerStore.Add(managerToKeep); managerStore.Add(string.Empty, managerToKeep2); Assert.AreEqual(((WebServiceDriverManager)managerToKeep).Get(), managerStore.GetDriver <EventFiringWebServiceDriver, WebServiceDriverManager>()); Assert.AreEqual(managerToKeep2, managerStore.GetManager(string.Empty)); }
protected override void Dispose(bool disposing) { if (disposing) { if (ManagerStore != null) { ManagerStore.Dispose(); ManagerStore = null; } } base.Dispose(disposing); }
public UserProjectController(IManagerStore managerStore) : base(managerStore) { }
public void EmptyCountZero() { IManagerStore dictionary = GetManagerStore(); Assert.AreEqual(0, dictionary.Count); }
public ResetTicketController(IManagerStore managerStore) : base(managerStore, managerStore.ResetTicketManager) { }
public CompanyRegistrationController(IManagerStore managerStore) : base(managerStore) { }
public ActivityController(IManagerStore managerStore) : base(managerStore, managerStore.ActivityManager) { }
public BaseApiController(IManagerStore managerStore) { ManagerStore = managerStore; }
public CrudApiController(IManagerStore managerStore, ICrudManager <TModel> manager) : base(managerStore, manager) { }
public UserController(IManagerStore managerStore) : base(managerStore, managerStore.UserManager) { }
public TimeEntryController(IManagerStore managerStore) : base(managerStore, managerStore.TimeEntryManager) { }
public CustomerController(IManagerStore managerStore) : base(managerStore, managerStore.CustomerManager) { }
public ProjectController(IManagerStore managerStore) : base(managerStore, managerStore.ProjectManager) { }