public void Ctor_should_set_WorkerServices_property() { var mockedDatabase = new Mock <IDatabase>().Object; var sut = new CatalogControllerWorkerServices(mockedDatabase); Assert.AreSame(mockedDatabase, sut.Database); }
public CatalogController(CatalogControllerWorkerServices workerServices) { if (workerServices == null) { throw new ArgumentNullException("workerServices"); } this.WorkerServices = workerServices; }