Example #1
0
 public void SetUp()
 {
     EMSWebsiteMapper.Initialize();
     BLLMapper.Initialize();
     _logger = Substitute.For <ILogger>();
     _uow    = Substitute.For <IUnitOfWork>();
 }
Example #2
0
        public void SetUp()
        {
            EMSWebsiteMapper.Initialize();

            _logger     = Substitute.For <ILogger>();
            _uow        = Substitute.For <IUnitOfWork>();
            _repository = Substitute.For <IGenericRepository <T001> >();
            var companyData = FakeStuffs.GetCompany();

            _uow.GetGenericRepository <T001>().ReturnsForAnyArgs(_repository);
            _repository.GetQuery().ReturnsForAnyArgs(companyData.AsQueryable());

            _companyBll = new CompanyBLL(_uow, _logger);
        }