Esempio n. 1
0
        public void ThenCurrencyIsSuccessfullyDeactivated()
        {
            ScenarioContext.Current.Should().ContainKey("currencyCode");
            var currencyCode = ScenarioContext.Current.Get <string>("currencyCode");

            var activateCurrencyData = new ActivateCurrencyData()
            {
                Code    = currencyCode,
                Remarks = TestDataGenerator.GetRandomString()
            };

            AdminApiProxy.ActivateCurrency(activateCurrencyData);

            var deactivateCurrencyData = new DeactivateCurrencyData()
            {
                Code    = currencyCode,
                Remarks = TestDataGenerator.GetRandomString()
            };

            var result = AdminApiProxy.DeactivateCurrency(deactivateCurrencyData);

            result.Should().NotBeNull();
            result.StatusCode.ShouldBeEquivalentTo(HttpStatusCode.OK);
        }