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

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