public void GetAllStoreNullTest() { var _repository = Substitute.For <IStoreRepository>(); _repository.GetAll().Returns(new Collection <Store>()); StoreDomainService _service = new StoreDomainService(_repository); string message = _service.GetAllStore().Messages.FirstOrDefault().Value; Assert.AreEqual(message, "Tidak Ada Store Yang Terdaftar"); }
public void GetAllStoreNullTest() { var _repository = Substitute.For<IStoreRepository>(); _repository.GetAll().Returns(new Collection<Store>()); StoreDomainService _service = new StoreDomainService(_repository); string message = _service.GetAllStore().Messages.FirstOrDefault().Value; Assert.AreEqual(message, "Tidak Ada Store Yang Terdaftar"); }
public void GetAllStoreTest() { Collection <StoreDomain> headOffices = service.GetAllStore().StoreDomains; Assert.IsNotNull(stores); }