public async Task Get_WithValidVertices_FindsOneResult() { var vertices = new List <Vertex> { new Vertex { X = 0, Y = 0 }, new Vertex { X = 10, Y = 0 }, new Vertex { X = 10, Y = 10 } }; var triangles = new List <Triangle> { new Triangle { Row = Row.A, Column = 1, Vertices = vertices } }; _triangleRepsitoryMock.Setup(s => s.GetAsync()).ReturnsAsync(triangles); var actual = await _triangleService.GetAsync(vertices[1], vertices[2], vertices[0]); Assert.IsNotNull(actual); Assert.AreEqual(Row.A, actual.Row); Assert.AreEqual(1, actual.Column); }