public virtual async Task SetAsync(Guid blogId, BlogFeatureInputDto dto) { await RequestAsync(nameof(SetAsync), new ClientProxyRequestTypeValue { { typeof(Guid), blogId }, { typeof(BlogFeatureInputDto), dto } }); }
public async Task SetAsync_ShouldWorkProperly_WithExistingFeature() { var dto = new BlogFeatureInputDto { FeatureName = testData.BlogFeature_2_FeatureName, IsEnabled = !testData.BlogFeature_2_Enabled }; await blogFeatureAdminAppService.SetAsync(testData.Blog_Id, dto); var feature = await blogFeatureRepository.FindAsync(testData.Blog_Id, dto.FeatureName); feature.ShouldNotBeNull(); feature.BlogId.ShouldBe(testData.Blog_Id); feature.IsEnabled.ShouldBe(dto.IsEnabled); }
public virtual Task SetAsync(Guid blogId, BlogFeatureInputDto dto) { return(BlogFeatureManager.SetAsync(blogId, dto.FeatureName, dto.IsEnabled)); }
public Task SetAsync(Guid blogId, BlogFeatureInputDto dto) { return(BlogFeatureAdminAppService.SetAsync(blogId, dto)); }