Esempio n. 1
0
        public void BusinessRepository_MultipleNullStrings_FormatMakesAllEmpty()
        {
            //Arrange: a presentation repository with multiple units of unformatted strings
            BusinessRepository<MockBusinessUnit> collection =
                new MockBusinessRepository();
            collection.Create(new MockBusinessUnit { attrTwo = null });
            collection.Create(new MockBusinessUnit { attrTwo = null});

            //Act: The presentation repositorie's format function is called
            collection.Format();

            collection.ForEach(x => Assert.AreEqual(x.attrTwo, string.Empty));
        }