Пример #1
0
        public void GetAllMarketAreaNullTest()
        {
            var _repository = Substitute.For <IMarketAreaRepository>();

            _repository.GetAll().Returns(new Collection <MarketArea>());
            MarketAreaDomainService _service = new MarketAreaDomainService(_repository);
            string message = _service.GetAllMarketArea().Messages.FirstOrDefault().Value;

            Assert.AreEqual(message, "Tidak Ada Market Area Yang Terdaftar");
        }
 public void GetAllMarketAreaNullTest()
 {
     var _repository = Substitute.For<IMarketAreaRepository>();
     _repository.GetAll().Returns(new Collection<MarketArea>());
     MarketAreaDomainService _service = new MarketAreaDomainService(_repository);
     string message = _service.GetAllMarketArea().Messages.FirstOrDefault().Value;
     Assert.AreEqual(message, "Tidak Ada Market Area Yang Terdaftar");
 }
Пример #3
0
        public void GetAllMarketAreaTest()
        {
            Collection <MarketAreaDomain> headOffices = service.GetAllMarketArea().MarketAreaDomains;

            Assert.IsNotNull(marketAreas);
        }