Exemplo n.º 1
0
        public UniqueDataEntryUtilTests()
        {
            _logger = new Mock <ILogger <UniqueDataEntryUtil> >();
            _sut    = new UniqueDataEntryUtil(_logger.Object);

            var initialCollection = new List <Item>()
            {
                new Item()
                {
                    FirstName = "James", SecondName = "Bond", Contact = "000 000 000", PostCode = "AB00 1AB"
                },
                new Item()
                {
                    FirstName = "Tom", SecondName = "Jones", Contact = "000 000 000", PostCode = "AB00 2AB"
                }
            };

            _dictionary = initialCollection.ToDictionary(x => x, x => x.FirstName, new Item.ItemEqualityComparer());
        }
Exemplo n.º 2
0
 public UniqueDataEntryHttpTriggerCSharp(IUniqueDataEntryUtil uniqueDataEntryUtil)
 {
     _uniqueDataEntryUtil = uniqueDataEntryUtil;
 }