Beispiel #1
0
 public RebeldFactoryTest()
 {
     _split                 = new SplitService();
     _factory               = new RebeldFactory(_split);
     _stringCollection      = new StringCollection();
     _stringCollectionEmpty = new StringCollection();
 }
Beispiel #2
0
 public SplitServiceTests()
 {
     _splitRepositoryMock        = new Mock <IGenericRepository <Split> >();
     _contactRepositoryMock      = new Mock <IGenericRepository <Contact> >();
     _splitContactRepositoryMock = new Mock <IGenericRepository <SplitContact> >();
     _splitService = new SplitService(_splitRepositoryMock.Object, _contactRepositoryMock.Object, _splitContactRepositoryMock.Object);
 }
 public RebeldeController(IRepository repository, ILogger logger, ILog log, ISplitService splitService)
 {
     _repository   = repository;
     _logger       = logger;
     _log          = log;
     _splitService = splitService;
 }
Beispiel #4
0
 public RebeldFactoryTests()
 {
     Split                  = new SplitService();
     Factory                = new RebeldeFactory(Split);
     _stringCollection      = new StringCollection();
     _stringCollectionEmpty = new StringCollection();
 }
Beispiel #5
0
        public void SeparaSplitCorrecto()
        {
            _splitService   = new SplitService();
            _stringCorrecto = "patata, Marte";

            var collection = _splitService.AplicaSplit(_stringCorrecto, ',');

            Assert.AreEqual(2, collection.Length);
        }
Beispiel #6
0
 public RebeldsController(IRepositoryRebelds repository, ILog log, ISplitService splitservice, IValidationRegisterSpecification validation, IRebeldListFactory listFactory, IRebeldFactory factory)
 {
     _repository   = repository;
     _log          = log;
     _splitservice = splitservice;
     _validation   = validation;
     _listFactory  = listFactory;
     _factory      = factory;
 }
        public void SeparaSplitErroneo()
        {
            bool error = false;

            try
            {
                _splitService  = new SplitService();
                _stringErroneo = "lola|potato";
                _splitService.AplicaSplit(_stringErroneo, ',');
            }
            catch (SplitException)
            {
                error = true;
            }

            Assert.IsTrue(error);
        }
Beispiel #8
0
 public RebeldeFactory(ISplitService split)
 {
     _split = split;
 }
 public SplitService_Common_Test(Xunit.Abstractions.ITestOutputHelper output, ReadStatelessCase context)
 {
     this._context      = context;
     this._splitService = this._context.ResolveService <ISplitService>();
 }
 public TransactionController(ISplitService splitService)
 {
     _splitService = splitService;
 }
Beispiel #11
0
 public Controller()
 {
     _readService  = new ReadService();
     _splitService = new SplitService();
     _writeService = new WriteService();
 }
 public RebeldeFactory(ISplitService splitService)
 {
     _splitService = splitService;
 }
Beispiel #13
0
 public FeatureFlagController(ISplitService splitService)
 {
     _splitService = splitService;
 }
 public SplitService_Sku_Test(Xunit.Abstractions.ITestOutputHelper output, AssistantCase context)
 {
     this._context      = context;
     this._splitService = context.ResolveService <ISplitService>();
 }
Beispiel #15
0
 public SplitController(IMapper mapper, ISplitService splitService)
 {
     _mapper       = mapper;
     _splitService = splitService;
 }
Beispiel #16
0
 public RebeldFactory(ISplitService split)
 {
     _split = split;
     _validationRegisterSpecification = new ValidationRegisterSpecification();
 }
Beispiel #17
0
 public SplitPackageController(ISplitService splitAppService)
 {
     this._SplitAppService = splitAppService;
 }