public async Task Add_AddedUserIsEquivalent() { //arrange var initScript = File.ReadAllText("InitDatabase.sql"); await _resource.CreateDatabaseAsync(_dbName); await _resource.RunSqlScriptAsync(initScript, _dbName); IConfiguration config = BuildInMemoryConfiguration(); var repo = new UserRespository(config); var user = User.CreateSample(); //act await repo.AddAsync(user); //assert User createdUser = await GetUserAsync(user.Id); createdUser.Should().BeEquivalentTo(user); }