예제 #1
0
        public void GetWeekday(string weekday)
        {
            // Act
            var bogus = new Mock <IBogusProvider>();

            bogus.Setup(o => o.Weekday())
            .Returns(weekday);
            ((FakerGenerator)generator).bogus.Value = bogus.Object;
            generator.Weekday().Should().Be(weekday);
        }
        public void StoreAsVariableWeekday(string varName)
        {
            this.variableController.Variables.Should().NotContainKey(varName, $"переменная \"{varName}\" уже существует");
            var str = fakerGenerator.Weekday();

            this.variableController.SetVariable(varName, str.GetType(), str);
        }