public async Task AddTest() { var fakeRepository = Mock.Of <ICommentRepository>(); var CommentService = new CommentService(fakeRepository); var Comment = new Comment() { Id = 1, CreatedAt = DateTime.Parse("2018-03-03"), CommentDescription = "CommentDescription" }; await CommentService.AddAndSafe(Comment); }