public async Task CreateServerInfoTest() { var expected = new ServerInfo(new ServerIdentity("1.2.3.4", "2,3", ServerRole.GameServer), "name", "region", 23, 1); Console.Out.WriteLine(JsonConvert.SerializeObject(expected, Formatting.Indented)); var newId = await _rep.CreateServerInfo(expected); var actual = (await _rep.GetAllServerInfo()).Single(s => s.Id == newId); actual.Should().BeEquivalentTo(actual); }