You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User Bogus For Generate Fake Data In MockDatas Like This
publicstaticUpdateProductInputModelValidUpdateProductInputModel()=>newFaker<UpdateProductInputModel>().RuleFor(bp =>bp.ProductId, f =>f.Random.Number(1,5)).RuleFor(bp =>bp.ProductName, f =>f.Name.FirstName()).RuleFor(bp =>bp.ProductTitle, f =>f.Name.JobTitle()).RuleFor(bp =>bp.ProductDescription, f =>f.Name.JobDescriptor()).RuleFor(bp =>bp.ProductCategory, f =>f.Random.Enum<ProductCategory>()).RuleFor(bp =>bp.MainImageName, f =>f.Name.FullName()).RuleFor(bp =>bp.MainImageTitle, f =>f.Name.FullName()).RuleFor(bp =>bp.MainImageUri, f =>f.Name.FullName()).RuleFor(bp =>bp.Color, f =>f.Random.Enum<ProductColor>()).RuleFor(bp =>bp.IsFreeDelivery, f =>f.Random.Bool()).RuleFor(bp =>bp.IsExisting, f =>f.Random.Bool()).RuleFor(bp =>bp.Weight, f =>f.Random.Number());
Passed All Tests
About
Integration test Use XUnit Use Bogus And HttpClient