コード例 #1
0
 public async Task AddTest()
 {
     var fakeRepository = Mock.Of<IRoleRepository>();
     var movieService = new RoleService(fakeRepository);
     var movie = new Role() { Name = "Create Actor" };
     await movieService.AddAndSave(movie);
 }