Ejemplo n.º 1
0
        void Setup_the_SUT()
        {
            DomainEventPublisherMock = new Moq.Mock<IPublishDomainEvents>(Moq.MockBehavior.Loose);

            State = new ProductState(DomainEventPublisherMock.Object);

            SUT = new Product(State);
        }
Ejemplo n.º 2
0
        public void Init()
        {
            var state = new ProductState(null);
            SUT= state;

            state.ProductActivated(a_tenant_id, a_product_id, a_product_name, a_product_description);
            state.ProductActivated(another_tenant_id, another_product_id, another_product_name, another_product_description);
        }
Ejemplo n.º 3
0
        void Setup_the_SUT_and_activate_the_tenants()
        {
            State = new ProductState(null);

            SUT = new Product(State);

            State.TenantActivated(a_tenant_id);
            State.TenantActivated(another_tenant_id);
        }