public void CanSetAttributesToBeCreatedWithParamsOverload() { //Act _builder.AttributesToSet(StructureAttribute.New(10, new StructureValue(10, "foo"))); //Assert Assert.That(_builder.Attributes.Count(), Is.EqualTo(1)); }
public void CanSetAttributesToBeCreatedWithListOverload() { //Arrange var builder = new CreateRequestBuilder(); var attributes = new List <StructureAttribute> { StructureAttribute.New(10, new StructureValue(10, "foo")) }; //Act builder.AttributesToSet(attributes); //Assert Assert.That(builder.Attributes.Count(), Is.EqualTo(1)); }
public void CanSetAttributesToBeCreatedWithListFactoryOverload() { //Arrange var builder = new CreateRequestBuilder(); //Act builder.AttributesToSet( () => new List <IAdsmlAttribute> { StructureAttribute.New(10, new StructureValue(10, "foo")), SimpleAttribute.New(AttributeTypes.Text, "objectName", "foo") } ); //Assert Assert.That(builder.Attributes.Count(), Is.EqualTo(2)); }