Пример #1
0
        public void GetClerkBadTest()
        {
            var fDesk = new FrontDesk(assemblies: new List <Assembly>()
            {
                typeof(SampleClerk).Assembly
            });
            var value = fDesk.GetClerk("invalid");

            Assert.IsNull(value);
        }
Пример #2
0
        public void GetClerkTest()
        {
            var fDesk = new FrontDesk(assemblies: new List <Assembly>()
            {
                typeof(SampleClerk).Assembly
            });
            var value = fDesk.GetClerk("SampleClerk");

            Assert.IsNotNull(value);
            Assert.AreEqual("SampleClerk", value.ID);
        }