Пример #1
0
        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");
        }
Пример #2
0
 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");
 }
Пример #3
0
        public void GetAllStoreTest()
        {
            Collection <StoreDomain> headOffices = service.GetAllStore().StoreDomains;

            Assert.IsNotNull(stores);
        }