예제 #1
0
        public void TestPicturePostfix()
        {
            uut = new PicturePostfix();
            TestImage ti = new TestImage
            {
                PinId = "testId"
            };

            Assert.That(uut.Generate(ti), Is.EqualTo("testId"));
        }
예제 #2
0
        public void TestEventModel()
        {
            uut = new EventPostFix();
            EventModel em = new EventModel
            {
                Pin = "testPin"
            };

            Assert.That(uut.Generate(em), Is.EqualTo("testPin"));
        }
예제 #3
0
        public void TestGuestPostfix()
        {
            uut = new GuestPostfix();
            Guest g = new Guest
            {
                Username = "******"
            };

            Assert.That(uut.Generate(g), Is.EqualTo("testUser"));
        }