public void CreateNewRequestBinGroupVerifyIfRequestBinGroupHasBeenCreated() { using (var requestBinUnitOfWork = new RequestBinUnitOfWorkModel(new EmptyDataFakeDatabase())) { IRequestBinService requestBinService = new RequestBinService(requestBinUnitOfWork); requestBinService.CreateGroup("TestGroupName"); var group = requestBinService.GetGroup("TestGroupName"); Assert.IsNotNull(group); } }
public void CreateNewRequestBinGroupVerifyIfRequestBinGroupHasBeenCreatedDeleteRequestBin() { using (var context = new RequestBinEfContext(_connectionString)) using (var requestBinUnitOfWork = new RequestBinUnitOfWork(context)) { IRequestBinService requestBinService = new RequestBinService(requestBinUnitOfWork); requestBinService.CreateGroup("TestGroupName"); var group = requestBinService.GetGroup("TestGroupName"); requestBinService.RemoveGroup(group); Assert.IsNotNull(group); } }