Esempio n. 1
0
        public void GetBettorTest()
        {
            var bettor = _persistenceService.Get(1);

            if (!bettor.Equals(_testBettor))
            {
                Assert.Fail();
            }
        }
Esempio n. 2
0
        public async void InsertAndGetLocation()
        {
            var location = await _persistenceService.Get <Location> (_location.Id);

            Assert.Null(location, "location is not null");

            await _persistenceService.Insert(_location);

            location = await _persistenceService.Get <Location> (_location.Id);

            AssertionHelper.AssertLocation(_location, location);

            await _persistenceService.Delete(location);

            location = await _persistenceService.Get <Location> (_location.Id);

            Assert.Null(location, "location is not null");
        }