示例#1
0
        public void SetUp()
        {
            TestUser = new User
            {
                Name ="John Doe",
                Email = "*****@*****.**",
                Age = 28,
                UserStatus = UserStatus.MEMBER
            };

            Administrator = new User
            {
                Name = "Sarah Jane",
                Email = "*****@*****.**",
                Age = 24,
                UserStatus = UserStatus.ADMINISTRATOR
            };

            TestTitle = new Title
            {
                TitleName = "Pulp Fiction",
                Director = "Quentin Tarantino",
                YearOfRelease = 1995
            };

            _stubEmailServices = MockRepository.GenerateStub<IEmailServices>();
            _stubEmailServices.Stub(x => x.SendUserWelcomeEmail(TestUser));

            _registry = new Registry(_stubEmailServices);
        }