public async Task GetModelCount_ShouldReturnZero_IfUserHasNoPictureOrInformation() { var options = new DbContextOptionsBuilder <ApplicationDbContext>() .UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options; var repository = new EfDeletableEntityRepository <ApplicationUser>(new ApplicationDbContext(options)); var service = new ModelService.ModelService(repository, null, null, null); var user1 = await this.CreateUserWithNoInformationAsync("*****@*****.**", "Pesho", "Peshev", repository); var user2 = await this.CreateUserWithNoInformationAsync("*****@*****.**", "Vank", "Vanko", repository); var user3 = await this.CreateUserWithNoInformationAsync("*****@*****.**", "Ri", "Ro", repository); var count = await service.GetModelCount(); Assert.Equal(0, count); }