Exemplo n.º 1
0
        public void Create_Missing_Address()
        {
            var mockedStore = new Mock <IBotDataStore <BotData> >();

            var target = new BotDataFactory(mockedStore.Object);

            Assert.ThrowsException <ArgumentNullException>(() => target.Create(null));
        }
Exemplo n.º 2
0
        public void Create()
        {
            var address     = new Address(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty);
            var mockedStore = new Mock <IBotDataStore <BotData> >();

            var target = new BotDataFactory(mockedStore.Object);

            var actual = target.Create(address);

            actual.Should().BeOfType <JObjectBotData>();
        }