Ejemplo n.º 1
0
 public async Task AddTest()
 {
     var fakeRepository = Mock.Of <IProfileRepository>();
     var ProfileService = new ProfileService(fakeRepository);
     var Profile        = new Profile()
     {
         Id = 1, Age = 18, City = "Almaty", FirstName = "Anvar", LastName = "HunT", Born = DateTime.Parse("2019-05-05")
     };
     await ProfileService.AddAndSafe(Profile);
 }