Exemple #1
0
        public void GetFirstName_ReturnFirstName(string name)
        {
            // Act
            var bogus = new Mock <IBogusProvider>();

            bogus.Setup(o => o.FirstName())
            .Returns(name);
            ((FakerGenerator)generator).bogus.Value = bogus.Object;
            generator.FirstName().Should().Be(name);
        }