public async Task points_service_add_async_should_succeed()
        {
            var pointsRepositoryMock     = new Mock <IPointRepository>();
            var connectionRepositoryMock = new Mock <IConnectionRepository>();
            var graphRepositoryMock      = new Mock <IGraphRepository>();

            var pointsService = new PointService(pointsRepositoryMock.Object, connectionRepositoryMock.Object, graphRepositoryMock.Object);

            var id = Guid.NewGuid();

            await pointsService.AddPointAsync(id, "point", Guid.NewGuid(), DateTime.UtcNow);

            pointsRepositoryMock.Verify(x => x.AddAssync(It.IsAny <MyPoint>()), Times.Once);
        }
        public async Task points_service_add_async_with_connection_should_succeed()
        {
            var pointsRepositoryMock     = new Mock <IPointRepository>();
            var connectionRepositoryMock = new Mock <IConnectionRepository>();
            var graphRepositoryMock      = new Mock <IGraphRepository>();

            var pointsService = new PointService(pointsRepositoryMock.Object, connectionRepositoryMock.Object, graphRepositoryMock.Object);
            var id            = Guid.NewGuid();

            Random rnd = new Random();

            var connections = new List <Connection>
            {
                new Connection(Guid.NewGuid(), rnd.Next(), id, string.Empty)
            };

            await pointsService.AddPointAsync(id, "point", Guid.NewGuid(), DateTime.UtcNow, connections);

            pointsRepositoryMock.Verify(x => x.AddAssync(It.IsAny <MyPoint>()), Times.Once);
        }