public async Task GetDetailsReturnsCorrectInformation() { AutoMapperInitializer.InitializeMapper(); var context = InMemoryDbContextInitializer.InitializeContext(); await context.Skills.AddRangeAsync(this.SeedData()); await context.SaveChangesAsync(); var repository = new EfDeletableEntityRepository <Skill>(context); var service = new SkillsService(repository); var result = service.GetDetails <EditViewModel>(1); Assert.NotNull(result); Assert.Equal(1, result.Id); Assert.Equal("First", result.Name); Assert.False(result.IsDeleted); }