Exemplo n.º 1
0
        public void CanGetAUserOrganizationEntity()
        {
            var userOrganization = EntityHelpers.CreateUserOrganization();

            DatabaseContext.Add(userOrganization);
            DatabaseContext.SaveChanges();
            var result = DatabaseContext.UserOrganizations.ToList().FirstOrDefault();

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