Esempio n. 1
0
        public async Task Can_StartCycle()
        {
            ExecutorStub.StubResult <StartCycleCommand>(123);

            var client = Client();

            var getResponse = await client
                              .GetAsync("/appFactory/manufacturing/cycles/start");

            var response = await getResponse.Form <StartCycleCommand>()
                           .SetText("Quantity", "123")
                           .Submit();

            response.Should().NotBeNull();

            ExecutorStub.SingleExecuted <StartCycleCommand>().Should().BeEquivalentTo(new StartCycleCommand
            {
                BlueprintId = -1,
                Quantity    = 123,
            });
        }