public void Ctor_should_set_WorkerServices_property()
        {
            var mockedDatabase = new Mock <IDatabase>().Object;
            var sut            = new CatalogControllerWorkerServices(mockedDatabase);

            Assert.AreSame(mockedDatabase, sut.Database);
        }
示例#2
0
 public CatalogController(CatalogControllerWorkerServices workerServices)
 {
     if (workerServices == null)
     {
         throw new ArgumentNullException("workerServices");
     }
     this.WorkerServices = workerServices;
 }