常用方法
常用方法
常用方法
常用方法
public async System.Threading.Tasks.Task testCategoriesAddAsync() { var fakeRepository = Mock.Of <ICategoriesRepository>(); var categoriesService = new CategoriesService(fakeRepository); var category = new Category() { Id = "test" }; await categoriesService.AddAndSave(category); }