Exemple #1
0
        public void CanGetAServiceLocationEntity()
        {
            var serviceLocation = EntityHelpers.CreateServiceLocation();

            DatabaseContext.Add(serviceLocation);
            DatabaseContext.SaveChanges();
            var result = DatabaseContext.ServiceLocations.ToList().FirstOrDefault();

            result.Should().BeEquivalentTo(serviceLocation);
        }