Пример #1
0
        public async Task AddSalon_AddsToDb()
        {
            // Act
            var lResult = await salonRepository.Add(new Entities.SalonEntity {
                Name = "test", Country = EntitiesHelper.GetCountry()
            });

            // Assert
            Assert.IsTrue(lResult.Id > 0);
            var lCreatedEntity = await salonRepository.GetById(lResult.Id);

            Assert.IsNotNull(lCreatedEntity);
            Assert.AreEqual("test", lCreatedEntity.Name);
            Assert.IsTrue(lCreatedEntity.Id > 0);
        }