コード例 #1
0
 public UbsServiceTest()
 {
     Context    = InMemoryContext();
     unitOfWork = new UnitOfWork(Context);
     mapper     = new UbsMapper();
     service    = new UbsService(unitOfWork, mapper);
 }
コード例 #2
0
        public void UbsService_RetornoUbs_DeveSerTrue()
        {
            mock = Substitute.For <IUbsService>();

            UbsDto ubs = new UbsDto("joão da Silva, 252, sao paulo", "Empresa XYZ", UbsAvaliacao.Bom);

            List <UbsDto> ubsLista = new List <UbsDto>();

            ubsLista.Add(ubs);

            mock.BucarUbsProximas(LAT, LO).Returns(ubsLista);
        }
コード例 #3
0
 public UbsController(IUbsService ubsService)
 {
     _ubsService = ubsService;
 }
コード例 #4
0
 public UbsController(IUbsService service)
 {
     this.service = service;
 }