using AutoFixture; using Bit.Core.Enums; using Bit.Core.Models.Api; using Bit.Core.Models.Data; using Bit.Core.Models.Domain; using Bit.Core.Models.Request; using Bit.Core.Models.Response; using Bit.Core.Models.View; namespace Bit.Core.Test.AutoFixture { internal class TextSendCustomization : ICustomization { public void Customize(IFixture fixture) { fixture.Customize(composer => composer .With(c => c.Type, SendType.Text) .With(c => c.Text, fixture.Create()) .Without(c => c.File)); fixture.Customize(composer => composer .With(c => c.Type, SendType.Text) .With(c => c.Text, fixture.Create()) .Without(c => c.File)); fixture.Customize(composer => composer .With(c => c.Type, SendType.Text) .With(c => c.Text, fixture.Create()) .Without(c => c.File)); fixture.Customize(composer => composer .With(c => c.Type, SendType.Text) .With(c => c.Text, fixture.Create()) .Without(c => c.File)); fixture.Customize(composer => composer .With(c => c.Type, SendType.Text) .With(c => c.Text, fixture.Create()) .Without(c => c.File)); } } internal class FileSendCustomization : ICustomization { public void Customize(IFixture fixture) { fixture.Customize(composer => composer .With(c => c.Type, SendType.File) .With(c => c.File, fixture.Create()) .Without(c => c.Text)); fixture.Customize(composer => composer .With(c => c.Type, SendType.File) .With(c => c.File, fixture.Create()) .Without(c => c.Text)); fixture.Customize(composer => composer .With(c => c.Type, SendType.File) .With(c => c.File, fixture.Create()) .Without(c => c.Text)); fixture.Customize(composer => composer .With(c => c.Type, SendType.File) .With(c => c.File, fixture.Create()) .Without(c => c.Text)); fixture.Customize(composer => composer .With(c => c.Type, SendType.File) .With(c => c.File, fixture.Create()) .Without(c => c.Text)); } } }