Example #1
0
        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);
        }