Ejemplo n.º 1
0
            public async Task WhenTableHasDifferentTypes_ThenDeleteAll()
            {
                var personDecimalRepository = TableRepositoryFactory.Create <PersonWithDecimalEntity>();
                var personEnumRepository    = TableRepositoryFactory.Create <PersonWithEnumEntity>();

                var pDec  = PersonWithDecimalTestBuilder.InMemory.Build();
                var pEnum = PersonWithEnumTestBuilder.InMemory.Build();

                await personDecimalRepository.InsertAsync(pDec);

                await personEnumRepository.InsertAsync(pEnum);

                await _sut.DeleteAllAsync();

                var count = await _sut.GetCountAsync();

                Assert.That(count, Is.EqualTo(0));
            }
 protected ServiceTestBase()
 {
     _repo = TableRepositoryFactory.Create <TableEntity>();
 }
Ejemplo n.º 3
0
        public async Task SetUp()
        {
            _sut = TableRepositoryFactory.Create <PersonEntity>();

            await _sut.DeleteAllAsync();
        }
 public void SetUp()
 {
     _sut = TableRepositoryFactory.Create <PersonWithEnumEntity>();
 }