public void FindById_ShouldWork() { var context = _contextFake.GetContext("FindById_ShouldWork") .AddFakeEnvironments(); var environmentFind = context.Environments.Skip(1).First(); var repo = new EnvironmentRepository(context); var result = repo.FindById(environmentFind.Id); Assert.NotNull(result); Assert.Equal(environmentFind, result, new EnvironmentComparer()); }