Пример #1
0
        public void OwnerCreatedByBuilderAsTitleNameGiveToBuilder(string firstname, string lastname, string title)
        {
            var owner = PeopleBuilder.CreateOwner().With(firstname, lastname, title);

            owner.Title.Should().Be(title);
        }
Пример #2
0
        public void PeopleBuilderCreatesOwnerBuilderInstance()
        {
            var owner = PeopleBuilder.CreateOwner();

            owner.Should().BeOfType <OwnerBuilder>();
        }
Пример #3
0
        public void ManagerBuilderCreatesManagerInstance()
        {
            var owner = PeopleBuilder.CreateOwner();

            owner.With("", "", "").Should().BeOfType <Owner>();
        }